//
//  LLSearchBar.h
//  ECTA
//
//  Created by 李叶夫 on 2018/2/23.
//  Copyright © 2018年 李叶夫. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface LLSearchBar : UISearchBar

@property (strong, nonatomic) UIColor *searchFieldColor;
@property (strong, nonatomic) UIColor *placeholderTextColor;
@property (strong, nonatomic) UIFont *font;
@property (strong, nonatomic) UIColor *textColor;
@property (assign, nonatomic) CGFloat cornerRadius;//圆角
@property (assign, nonatomic) BOOL semicircle;
@property (assign, nonatomic) UIEdgeInsets textFieldContentInset;
@property (assign, nonatomic) UITextFieldViewMode clearButtonMode;// default: UITextFieldViewModeAlways


/**
 处理iOS 11 titleView 设置为 searchBar 时 navigation高度发生变化的问题
 */
@property (assign, nonatomic) CGFloat heightConstraint;

#pragma mark - cancelButton
/**
 当 showCancelButton = YES 时，修改 cancelButton 的文字,文字颜色，字体
 */
@property (nonatomic, copy) NSString *cancelButtonTitle;
@property (strong, nonatomic) UIColor *cancelButtonTitleColor;
@property (strong, nonatomic) UIFont *cancelButtonTitleFont;




@end
